home *** CD-ROM | disk | FTP | other *** search
- Path: anvil.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c,comp.unix.programmer
- Subject: Re: How to find out if the child process has done exec()
- Followup-To: comp.unix.programmer
- Date: 1 Mar 1996 18:48:31 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Distribution: na
- Message-ID: <4h8ctvINNgr1@anvil.ugrad.cs.ubc.ca>
- References: <DnM3An.60M@seas.ucla.edu>
- NNTP-Posting-Host: anvil.ugrad.cs.ubc.ca
-
- In article <DnM3An.60M@seas.ucla.edu>,
- Orachat Chieu <orachat@cirrus.seas.ucla.edu> wrote:
- >Hi:
- >
- >Is there a way for the parent process to find out if the child
- >process that it has forked has done an exec() or not? Thank you.
-
- This is not necessary, because the child executes the same code as the parent
- until the exec() happens. In this code, you can communicate to the parent that
- you are _about to_ do an exec. However, after the exec there is no notification
- to the parent that it has been done. Once you exec(), your code is replaced by
- the new program and control passes to it.
-
- (follow-up set to comp.unix.programmer)
- --
-
-